/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.techhighteam675.robot2012;

import edu.wpi.first.wpilibj.SpeedController;
import edu.wpi.first.wpilibj.Victor;

/**
 *
 * @author TJ
 */
public class DoubleVictor implements SpeedController {
    private Victor vic1, vic2;

    public DoubleVictor(int module1, int channel1, int module2, int channel2) {
        vic1 = new Victor(module1, channel1);
        vic2 = new Victor(module2, channel2);
    }

    public double get() {
        return vic1.get();
    }

    public void set(double speed, byte syncGroup) {
        set(speed);
    }

    public void set(double speed) {
        vic1.set(speed);
        vic2.set(speed);
    }

    public void disable() {
        vic1.setRaw(0);
        vic2.setRaw(0);
    }

    public void pidWrite(double output) {
        set(output);
    }

}
